// React用来编译jsx语法
import React from 'react';
import ReactDOM from 'react-dom';
// import TodoList from './TodoList';
// import App from './App';
import Todolist2 from './todolist2';
import ReactReduxTodo from './ReactReduxTodo'
import './setupProxy'
import {Provider}from 'react-redux'
import store from './store'
// import * as serviceWorker from './serviceWorker';
const ReactTodo =(
    <Provider store={store}>
        <ReactReduxTodo></ReactReduxTodo>
    </Provider>
    )
    

//将组件APP挂载到id为root的节点上
// 如果要使用自定义组件也需要在这里render,注意组件开头一定要大写
ReactDOM.render(ReactTodo, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
// serviceWorker.unregister();
